Skip to content

Remove subtyping for () from node graph type system #2418

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 8 commits into from
Mar 26, 2025

Conversation

bradrn
Copy link
Contributor

@bradrn bradrn commented Mar 10, 2025

The current type system for the node graph has a special case where all types are considered subtypes of the unit type (). However, it seems that this case never occurs in practice — I can’t find anything which breaks when this case is removed. Furthermore, it makes the type system (which is already somewhat confusing) even more difficult to reason about.

@TrueDoctor
Copy link
Member

@bradrn can you remove the unnecessary import? (basically run cargo check)

@TrueDoctor
Copy link
Member

Other than that everything seems to be fine

@0HyperCube 0HyperCube enabled auto-merge (squash) March 26, 2025 18:57
@0HyperCube 0HyperCube merged commit 9213291 into GraphiteEditor:master Mar 26, 2025
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants